package com.houtai.bean.dto.train.apply;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@ApiModel(value="报名培训发送短信所需参数", description="报名培训发送短信所需参数")
public class TdTrainApplySendMessageDto implements Serializable{

    private static final long serialVersionUID = 1L;
    /**
     * 用户注册时手机号码
     */
    @NotNull(message = "请输入正确手机号码")
    @Pattern(regexp = "^1[3|4|5|6|7|8|9][0-9]\\d{8}$", message = "请输入正确手机号码")
    @ApiModelProperty(value="手机号码", name="phone_no")
    private String phone_no;

    @NotNull(message = "培训ID不能为空")
    @ApiModelProperty(value="id", name="train_id")
    private int train_id;
    public String getPhone_no() {
        return phone_no;
    }

    public void setPhone_no(String phone_no) {
        this.phone_no = phone_no;
    }

    public int getTrain_id() {
        return train_id;
    }

    public void setTrain_id(int train_id) {
        this.train_id = train_id;
    }
}